/**
 * 
 */
package version12;

import java.awt.Color;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * @author Sebastian
 *
 */
@SuppressWarnings("serial")
public class PowerSlider extends JPanel {
	
	private ImageIcon icon = null;
	URL url = null;
	
	/**
	 * Konstruktor slidera jako komponentu Swing
	 */
	public PowerSlider() {
		this.setBackground(Color.gray);
		
	    url = getClass().getClassLoader().getResource("res/slider.png");
	 	icon = new ImageIcon(url);
	    JLabel label = new JLabel();
		label.setIcon(icon);
		this.add(label);
	}	 
}


